//
//  BHCirclePublishTextCell.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/7/12.
//

import UIKit

class BHCirclePublishTextCell: UICollectionViewCell {
    @IBOutlet weak var textfiled: UITextField!
    var textFiledEndEditingBlock:((String) -> Void)?
    
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
        self.textfiled.delegate = self
    }

}


extension BHCirclePublishTextCell: UITextFieldDelegate {
    func textFieldDidEndEditing(_ textField: UITextField) {
        self.textFiledEndEditingBlock?(textField.text ?? "")
    }
}
